import request from '@/utils/request'

// 文件上传
export function uploadFile(file) {
    const formData = new FormData();
    formData.append("file", file);
    return request({
        url: '/file/upload',
        method: 'post',
        headers: {
            'Content-Type': 'multipart/form-data'
        },
        data: formData
    })
}

export function delBatchFile(key) {
    return request({
        url: '/file/delBatchFile',
        method: 'POST',
        params: {
            key: key
        }
    })
}
